package org.collector.data.controllerdata;

public class SiteOfProxySnapshot extends SiteOfProxyParam {
	private int queue_len;
	protected SiteOfProxySnapshot(){
		queue_len = 0;
	}
	public SiteOfProxySnapshot(SiteOfProxyStatu statu){
		synchronized(statu){
			this.queue_len = statu.getQueuelength();
			statu.copyTo(this);
		}
	}
	protected void setQueueLen(final int len){
		queue_len = len;
	}
	protected void addSiteOfProxySnapshot(SiteOfProxySnapshot shot){
		queue_len += shot.queue_len + 1;
		super.addSiteOfProxyParam(shot);
	}
	public int getQueue_len() {
		return queue_len;
	}
}
